package cn.yx.common.security.webflux.vo.in;

import cn.yx.common.core.pojo.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * <p>用于提交手机登录或手机注册的VO输入类</p>
 *
 * @author Wgssmart
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PhoneSmsCodeInVo", description = "手机号短信验证码VO输入对象")
public class PhoneSmsCodeInVo extends BaseVo {

    @NotEmpty(message = "{cn.yx.common.security.phoneIsNullOrEmpty}")
    @ApiModelProperty(name = "phone", value = "手机号", example = "13666666666", required = true)
    private String phone;

    @NotEmpty(message = "{cn.yx.common.security.smsCodeIsNullOrEmpty}")
    @ApiModelProperty(name = "smsCode", value = "短信验证码", example = "666888", required = true)
    private String smsCode;
}
